package com.jxin.mall.member.service.entity.dto.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 用户注册请求参数
 * @author  蔡佳新
 * @version 1.0
 * @since   jdk 1.8
 */
@Data
@Validated
@ApiModel("用户注册信息")
public class UserRegisterReqDTO implements Serializable {
    private static final long serialVersionUID = 8455768327192046921L;
    /**账号*/
    @ApiModelProperty(value = "账号")
    private String username;
    /**手机号码*/
    @ApiModelProperty(value = "手机号码")
    private String tel;
    /**密码*/
    @ApiModelProperty(value = "密码")
    @NotNull(message = "密码不能为空")
    private String password;
    /**注册码*/
    @ApiModelProperty(value = "注册码")
    private String registerCode;
    /**微信用户信息令牌*/
    @ApiModelProperty(value = "微信用户信息令牌")
    private String wxToken;
    /**QQ用户信息令牌*/
    @ApiModelProperty(value = "QQ用户信息令牌")
    private String qqToken;
}
